@rem Copyright (c) Huawei Technologies Co., Ltd. 2010-2018. All rights reserved.
@rem Description: 本地代码打包脚本
@echo off
title build_zip_and_sign

@REM 旧的打包方式
@REM call npm run build-old
@REM call npm run zip

@REM 新的打包方式
call npm run build-zip

@REM 打包页面资产包
@REM call npm run build
@REM call npm run zip

if not exist OUTPUT mkdir OUTPUT
java -Dspring.config.location=./asset-signature-V1.1/application.yml -jar ./asset-signature-V1.1/asset-signature.jar
node tool.js after_sign
rd /s /Q OUTPUT
echo --------- AssetPack.zip created and signed ------------
timeout 3

